package com.hyphenate.easeim

import android.app.Application
import com.hyphenate.easeim.common.interfaceOrImplement.UserActivityLifecycleCallbacks
import com.salton123.app.BaseApplication

/**
 * Time:2022/7/17 20:56
 * Author:
 * Description:
 */
object EaseFacade {
    private val lifecycleCallbacks = UserActivityLifecycleCallbacks()

    @JvmStatic
    fun registerActivityLifecycleCallbacks() {
        BaseApplication.getInstance<Application>().registerActivityLifecycleCallbacks(lifecycleCallbacks)
    }

    @JvmStatic
    fun getLifecycleCallbacks(): UserActivityLifecycleCallbacks? {
        return lifecycleCallbacks
    }

}